home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / reqtools-2.2b.lha / ReqTools-2.2b / Install / Workbench_2.1+ / Install ReqTools < prev    next >
Encoding:
Text File  |  1994-01-03  |  15.5 KB  |  553 lines

  1.  
  2. ; Install script for ReqTools (Workbench 2.1 or higher)
  3.  
  4. (set @default-dest "")
  5. (set old_level @user-level)
  6.  
  7. (set reqtoolslib "//libs20/reqtools.library")
  8. (set rtpatch "//RTPatch/RTPatch")
  9. (set catalogdir "//Catalogs/")
  10.  
  11. ;=============================================================================
  12. ; English strings
  13.  
  14. (set default_lang 4)
  15.  
  16. (set #bad-kick
  17. (cat "You must be using Kickstart 2.04 to install using this script!"
  18.       " Double-click the 'Workbench_1.2-1.3' icon to install ReqTools on"
  19.       " Kickstart 1.2 or 1.3 machines."
  20. ))
  21.  
  22. (set #copying-reqtools "Copying reqtools.library to Libs:...")
  23. (set #copying-rtpatch  "Copying RTPatch...")
  24.  
  25. (set #which-language
  26. (cat "\nWhich languages should be installed?"
  27. ))
  28. (set #which-language-help
  29. (cat "\nThe Amiga can be operated in many different"
  30.       " languages. If you want ReqTools requesters to"
  31.       " use the same language as the Amiga Workbench"
  32.       " then a catalog file must be copied to your"
  33.       " system disk for each language supported.\n\n"
  34.       "To reduce the amount of space consumed by the"
  35.       " language files, you can select to have only the"
  36.       " files of specific languages copied.\n\n"
  37.       "Simply check the boxes of the languages you wish"
  38.       " to have available on your system.\n\n"
  39.       @askoptions-help
  40. ))
  41.  
  42. (set #install-msg
  43. (cat "\n\nReqTools installation script.\n"
  44.      "This script installs ReqTools library on your Amiga.\n\n"
  45.      "Read the DISTRIBUTION file for\n"
  46.      "more information on the distribution\n"
  47.      "and commercial usage of ReqTools.\n\n"
  48.      "ReqTools © 1991-1994 Nico François\n"
  49.      "All rights reserved."
  50. ))
  51.  
  52. ;=============================================================================
  53. ; Portugues strings
  54.  
  55. (if (= @language "português")
  56. (
  57.  
  58. (set default_lang 256)
  59.  
  60. (set #bad-kick
  61. (cat "É preciso de ter o Kickstart 2.04 para poder instalar!" ))
  62.  
  63. (set #copying-reqtools "Copiando reqtools.library para a Libs:...")
  64. (set #copying-rtpatch  "Copiando RTPatch...")
  65.  
  66. (set #which-language
  67. (cat "\nQue linguagens deverão ser instaladas?" ))
  68.  
  69. (set #which-language-help
  70. (cat "\nO Amiga pode ser operado em muitas linguagens "
  71.      "diferentes. Alguns ficheiros têm de ser copiados "
  72.      "para o seu disco rígido por cada linguagem suportada.\n\n"
  73.      "Para reduzir o consumo de espaço no disco pelas linguagens "
  74.      "poderá apenas escolher aquelas que lhe serão úteis.\n\n"
  75.      "Para isto basta apenas marcar as caixas com os nomes das "
  76.      "linguagens para que estas sejam instaladas.\n\n"
  77.      @askoptions-help
  78. ))
  79.  
  80.  
  81. (set #install-msg
  82. (cat "\n\nScript de Instalação do ReqTools.\n"
  83.      "Este script instala o ReqTools no seu Amiga.\n\n"
  84.      "Leia o ficheiro DISTRIBUTION para\n"
  85.      "mais informação acerca da distribuição\n"
  86.      "e uso comercial do ReqTools.\n\n"
  87.      "ReqTools © 1991-1994 Nico François\n"
  88.      "Todos os Direitos Reservados."
  89. ))
  90.  
  91. ))
  92.  
  93. ;=============================================================================
  94. ; Spanish strings
  95.  
  96. (if (= @language "español")
  97. (
  98.  
  99. (set default_lang 8)
  100.  
  101. ; string needs to be changed (see english string)
  102. (set #bad-kick
  103. (cat "Necesita usar el Kickstart 2.04 para instalar!"
  104. ))
  105.  
  106. (set #copying-reqtools "Copiado reqtools.library a Libs:...")
  107. (set #copying-rtpatch  "Copiado RTPatch...")
  108.  
  109. (set #which-language
  110. (cat "\n¿Qué lenguaje quiere instalar?"
  111. ))
  112.  
  113. ; string needs to be changed (see english string)
  114. (set #which-language-help
  115. (cat "\nAmiga puede operar en diferentes idiomas. "
  116.      "Se copiarán algunos ficheros a su disco duro "
  117.      "por cada idioma utilizado.\n\n"
  118.      "Para reducir el espacio usado en disco duro "
  119.      "puede seleccionar sólo los ficheros del idioma "
  120.      "que va a utilizar.\n\n"
  121.      "Sólamente tiene que pulsar en el idioma que "
  122.      "quiera instalar en su sistema.\n\n"
  123.      @askoptions-help
  124. ))
  125.  
  126. ; not translated yet!
  127. ;(set #install-msg
  128. ;(cat "\n\nReqTools installation script.\n"
  129. ;     "This script installs ReqTools library on your Amiga.\n\n"
  130. ;     "Read the DISTRIBUTION file for\n"
  131. ;     "more information on the distribution\n"
  132. ;     "and commercial usage of ReqTools.\n\n"
  133. ;     "ReqTools © 1991-1994 Nico François\n"
  134. ;     "All rights reserved."
  135. ;))
  136.  
  137. ))
  138.  
  139. ;=============================================================================
  140. ; French strings
  141.  
  142. (if (= @language "français")
  143. (
  144.  
  145. (set default_lang 16)
  146.  
  147. (set #bad-kick
  148. (cat "Vous devez utiliser le Kickstart 2.04 pour pouvoir installer Reqtools"
  149.    " avec ce script\n."  
  150.    " Double-cliquer sur l'icône 'Workbench_1.2-1.3' pour installer ReqTools"
  151.    " sur une machine possédant le Kickstart 1.2 où 1.3." ))
  152.  
  153. (set #copying-reqtools "Copie du fichier reqtools.library vers Libs:...") (set
  154. #copying-rtpatch  "Copie du fichier RTPatch...")
  155.  
  156. (set #which-language
  157. (cat "\nQuelles sont les langues à installer ?" ))
  158.  
  159. (set #which-language-help
  160. (cat "\nL'Amiga peut fonctionner dans différentes langues. "
  161.      "Plusieurs fichiers doivent être copiés sur le disque dur "
  162.      "pour chaque langue utiliséee\n\n"
  163.      "Pour réduire la quantité d'espace utilisé par ces fichiers, "
  164.      "vous devez sélectionner seulement les langues qui vous seront "
  165.      "utiles.\n\n"
  166.      "Cochez les langues que vous souhaitez être disponibles "
  167.      "sur votre système\n\n"
  168.      @askoptions-help
  169. ))
  170.  
  171. (set #install-msg
  172. (cat "\n\nScript d'installation de ReqTools.\n"
  173.      "Ce script installe la librairie ReqTools sur votre Amiga.\n\n"
  174.      "Lisez le fichier intitulé DISTRIBUTION pour\n"
  175.      "de plus amples informations sur la distribution\n"
  176.      "et l'utilisation commerciale de ReqTools.\n\n"
  177.      "ReqTools © 1991-1994 Nico François\n"
  178.      "Tous Droits réservés."
  179. ))
  180.  
  181. ))
  182.  
  183. ;=============================================================================
  184. ; German strings
  185.  
  186. (if (= @language "deutsch")
  187. (
  188.  
  189. (set default_lang 2)
  190.  
  191. (set #bad-kick
  192. (cat "Sie müssen Kickstart 2.04 benutzen, um dieses Skript zur Installation "
  193.       "benutzen zu können! Klicken sie zweimal auf das 'Workbench_1.2-1.3'"
  194.       "-Piktogramm, um ReqTools auf Rechnern mit Kickstart 1.2 oder 1.3 zu "
  195.       "installieren."
  196. ))
  197.  
  198. (set #copying-reqtools "Kopieren Datei reqtools.library nach Libs:...")
  199. (set #copying-rtpatch  "Kopieren Datei RTPatch...")
  200.  
  201. (set #which-language
  202. (cat "\nWelche Sprachen sollen installiert werden?"
  203. ))
  204. (set #which-language-help
  205. (cat "\nDer Amiga kann in vielen verschiedenen Sprachen betrieben werden. "
  206.       "Wenn Sie wollen, daß die ReqTools-Dialogfenster die gleiche Sprache "
  207.       "wie die Amiga-Workbench benutzen, müssen für jede zu installierende Sprache "
  208.       "zwei Dateien auf Ihre Festplatte kopiert werden.\n\n"
  209.       "Um den Platz in Grenzen zu halten, den die Sprachentreiberdateien "
  210.       "einnehmen, können Sie wählen, nur die Treiber für bestimmte "
  211.       "Sprachen zu installieren.\n\n"
  212.       "Klicken Sie einfach die Felder derjenigen Sprachen an, die Sie in "
  213.       "Ihrem System verfügbar haben wollen, so daß diese Sprachen mit "
  214.       "einem Häkchen markiert sind.\n\n"
  215.       @askoptions-help
  216. ))
  217.  
  218. (set #install-msg
  219. (cat "\n\nReqTools Installationsskript.\n"
  220.       "Diese Befehlsdatei installiert die ReqTools-Library auf Ihrem Amiga.\n\n"
  221.       "Lesen Sie die 'DISTRIBUTION'-Datei für\n"
  222.       "weitere Informationen über Weitergeabe\n"
  223.       "und kommerzielle Nutzung von ReqTools.\n\n"
  224.       "ReqTools © 1991-1994 Nico François\n"
  225.       "All rights reserved."
  226. ))
  227.  
  228. ))
  229.  
  230. ;=============================================================================
  231. ; Dutch strings
  232.  
  233. (if (= @language "nederlands")
  234. (
  235.  
  236. (set default_lang 64)
  237.  
  238. (set #bad-kick
  239. (cat "U moet Kickstart 2.04 gebruiken om met dit installatie script te"
  240.       " installeren!  Dubbel-klik het 'Workbench_1.2-1.3' ikoon om ReqTools"
  241.       " te installeren op Kickstart 1.2 of 1.3 machines."
  242. ))
  243.  
  244. (set #copying-reqtools "Kopieer reqtools.library naar Libs:...")
  245. (set #copying-rtpatch  "Kopieer RTPatch...")
  246.  
  247. (set #which-language
  248. (cat "\nWelke talen moeten geïnstalleerd worden?"
  249. ))
  250. (set #which-language-help
  251. (cat "\nDe Amiga kan werken in verschillende talen."
  252.       " Als u wilt dat ReqTools in dezelfde taal werkt"
  253.       " dan moet er voor elke taal een bestand naar"
  254.       " uw systeem disk gekopieerd worden.\n\n"
  255.       "Om de grootte van het geheugen die de taal bestanden"
  256.       " innemen te verkleinen, kunt u een keuze maken uit"
  257.       " de talen, die vervolgens naar uw systeem disk worden"
  258.       " gekopieerd .\n\nU hoeft alleen die talen die u op"
  259.       " uw systeem wilt hebben aan te klikken.\n\n"
  260.      @askoptions-help
  261. ))
  262.  
  263. (set #install-msg
  264. (cat "\n\nReqTools installatie script.\n"
  265.      "Dit script installeert 'ReqTools library' op uw Amiga.\n\n"
  266.      "Lees het 'DISTRIBUTION' bestand voor\n"
  267.      "meer informatie over de verspreiding\n"
  268.      "en het commcerciële gebruik van ReqTools.\n\n"
  269.      "ReqTools © 1991-1994 Nico François\n"
  270.      "All rights reserved."
  271. ))
  272.  
  273. ))
  274.  
  275. ;=============================================================================
  276. ; Italian strings
  277.  
  278. (if (= @language "italiano")
  279. (
  280. (set default_lang 32)
  281.  
  282. ; string needs to be changed (see english string)
  283. (set #bad-kick
  284. (cat "E' necessario il Kickstart 2.04 per installare!"
  285. ))
  286.  
  287. (set #copying-reqtools "Copia reqtools.library nel Libs:...")
  288. (set #copying-rtpatch  "Copia RTPatch...")
  289.  
  290. (set #which-language
  291. (cat "\nQuali lingue devono essere installate? "
  292. ))
  293.  
  294. ; string needs to be changed (see english string)
  295. (set #which-language-help
  296. (cat "\nAmiga può operate con lingue differenti. "
  297.      "Per ogni lingua supportata saranno copiati "
  298.      "numerosi file sul vostro disco fisso.\n\n"
  299.      "Per ridurre lo spazio occupato da questi "
  300.      "file, potete installare solo quelli di una "
  301.      "lingua specifica.\n\n"
  302.      "Segnate solo i riquadri delle lingue che volete "
  303.      "siano disponibili sul vostro sistema.\n\n"
  304.      @askoptions-help
  305. ))
  306.  
  307. ; not translated yet!
  308. ;(set #install-msg
  309. ;(cat "\n\nReqTools installation script.\n"
  310. ;     "This script installs ReqTools library on your Amiga.\n\n"
  311. ;     "Read the DISTRIBUTION file for\n"
  312. ;     "more information on the distribution\n"
  313. ;     "and commercial usage of ReqTools.\n\n"
  314. ;     "ReqTools © 1991-1994 Nico François\n"
  315. ;     "All rights reserved."
  316. ;))
  317.  
  318. ))
  319.  
  320. ;=============================================================================
  321. ; Danish strings
  322.  
  323. (if (= @language "dansk")
  324. (
  325.  
  326. (set default_lang 1)
  327.  
  328. (set #bad-kick
  329. (cat "Din maskine har ikke Kickstart 2.04, mindstekravet"
  330.      " for dette installations-program.\n\n"
  331.      "Dobbeltklik på 'Workbench_1.2-1.3' ikonet for at installere"
  332.      " ReqTools på maskiner med Kickstart 1.2 eller 1.3"
  333. ))
  334.  
  335. (set #copying-reqtools "Kopierer reqtools.library til Libs:...")
  336. (set #copying-rtpatch  "Kopierer RTPatch...")
  337.  
  338. (set #which-language
  339. (cat "\nHvilke(t) sprog skal installeres?"
  340. ))
  341.  
  342. (set #which-language-help
  343. (cat "\nDin Amiga kan arbejde på mange forskellige sprog.\n"
  344.      "Der skal kopieres adskillige filer til din system-disk"
  345.      " for hvert sprog du vil benytte.\n\n"
  346.      "Hvis ReqTools kun skal kommunikere på Engelsk,"
  347.      " behøver du ikke at vælge andre sprog.\n\n"
  348.      "Klik på knapperne ud for hvert sprog du vil have til"
  349.      " rådighed på dit system.\n\n"
  350.      @askoptions-help
  351. ))
  352.  
  353. ; not translated yet!
  354. ;(set #install-msg
  355. ;(cat "\n\nReqTools installation script.\n"
  356. ;     "This script installs ReqTools library on your Amiga.\n\n"
  357. ;     "Read the DISTRIBUTION file for\n"
  358. ;     "more information on the distribution\n"
  359. ;     "and commercial usage of ReqTools.\n\n"
  360. ;     "ReqTools © 1991-1994 Nico François\n"
  361. ;     "All rights reserved."
  362. ;))
  363.  
  364. ))
  365.  
  366. ;=============================================================================
  367. ; Swedish strings
  368.  
  369. (if (= @language "svenska")
  370. (
  371. (set default_lang 512)
  372.  
  373. ; string needs to be changed (see english string)
  374. (set #bad-kick
  375. (cat "Du måste använda Kickstart 2.04 för att kunna installera!"
  376. ))
  377.  
  378. (set #copying-reqtools "Kopierar reqtools.library till Libs:...")
  379. (set #copying-rtpatch  "Kopierar RTPatch...")
  380.  
  381. (set #which-language
  382. (cat "\nVilka språk skall installeras?"
  383. ))
  384.  
  385. ; string needs to be changed (see english string)
  386. (set #which-language-help
  387. (cat "\nAmigan kan arbeta med flera olika språk. Ett flertal filer "
  388.      "måste kopieras till hårddisken för varje språk du vill kunna "
  389.      "använda.\n\n"
  390.      "För att minimera hårddiskutrymmet för språkfiler kan du "
  391.      "välja att bara installera filerna för vissa språk.\n\n"
  392.      "Markera bara rutorna för de språk du önskar installera "
  393.      "i din dator.\n\n"
  394.      @askoptions-help
  395. ))
  396.  
  397. ; not translated yet!
  398. ;(set #install-msg
  399. ;(cat "\n\nReqTools installation script.\n"
  400. ;     "This script installs ReqTools library on your Amiga.\n\n"
  401. ;     "Read the DISTRIBUTION file for\n"
  402. ;     "more information on the distribution\n"
  403. ;     "and commercial usage of ReqTools.\n\n"
  404. ;     "ReqTools © 1991-1994 Nico François\n"
  405. ;     "All rights reserved."
  406. ;))
  407.  
  408. ))
  409.  
  410. ;=============================================================================
  411. ; Norwegian strings
  412.  
  413. (if (= @language "norsk")
  414. (
  415.  
  416. (set default_lang 128)
  417.  
  418. (set #bad-kick
  419. (cat "Du må ha Kickstart 2.04 for å installere!"
  420.          "Dobbel-klikk på 'Workbench_1.2-1.3' ikonet for å installere"
  421.          "ReqTools på maskiner med Kickstart 1.2 eller 1.3"
  422. ))
  423.  
  424. (set #copying-reqtools "Kopier fil reqtools.library til Libs:...")
  425. (set #copying-rtpatch  "Kopier fil RTPatch...")
  426.  
  427. (set #which-language
  428. (cat "\nHvilke språk skal installeres?"
  429. ))
  430.  
  431. (set #which-language-help
  432. (cat "Amiga kan benytte mange forskjellige språk. "
  433.      "Dersom du vil ha ReqTools til å bruke samme språk "
  434.      "som er benyttet på Amiga Workbench'en, må en "
  435.      "språkfil kopieres til system disken din. "
  436.      "Språkfiler må kopieres til disken for hvert språk"
  437.      " som du installerer.\n\n"
  438.      "For å redusere plassen som benyttes til språkfiler, "
  439.      "kan du velge ut de språkene du vil ha tilgjengelige "
  440.      "på maskinen din.\n\n"
  441.      "Sett en hake ved de språkene du ønsker å ha "
  442.      "tilgjengelige på din maskin.\n\n"
  443.      @askoptions-help
  444. ))
  445.  
  446. ; not translated yet!
  447. ;(set #install-msg
  448. ;(cat "\n\nReqTools installation script.\n"
  449. ;     "This script installs ReqTools library on your Amiga.\n\n"
  450. ;     "Read the DISTRIBUTION file for\n"
  451. ;     "more information on the distribution\n"
  452. ;     "and commercial usage of ReqTools.\n\n"
  453. ;     "ReqTools © 1991-1994 Nico François\n"
  454. ;     "All rights reserved."
  455. ;))
  456.  
  457. ))
  458.  
  459. ;=============================================================================
  460. ; make sure we are running under a 2.04 ROM
  461.  
  462. (if (< (/ (getversion) 65536) 37)
  463. (
  464.     (abort #bad-kick)
  465. ))
  466.  
  467. ;=============================================================================
  468.  
  469. (message #install-msg)
  470.  
  471. (copylib
  472.     (prompt "\n" #copying-reqtools)
  473.     (help @copylib-help)
  474.     (source reqtoolslib)
  475.     (dest "Libs:")
  476.     (confirm)
  477. )
  478.  
  479. (if (exists "C:RTPatch")
  480. (
  481.     (copylib
  482.         (prompt "\n" #copying-rtpatch)
  483.         (help @copylib-help)
  484.         (source rtpatch)
  485.         (dest "C:")
  486.         (confirm)
  487.     )
  488. ))
  489.  
  490. (if (exists "SYS:WbStartup/RTPatch")
  491. (
  492.     (copylib
  493.         (prompt "\n" #copying-rtpatch)
  494.         (help @copylib-help)
  495.         (source rtpatch)
  496.         (dest "SYS:WbStartup")
  497.         (confirm)
  498.     )
  499. ))
  500.  
  501. (if (exists "SYS:Locale")
  502. (
  503.     (if (exists "LOCALE:")
  504.     (
  505.         (user 2)
  506.         (set lang (askoptions (prompt #which-language)
  507.                                      (help #which-language-help)
  508.                                      (choices
  509.                                         "Dansk"
  510.                                          "Deutsch"
  511.                                          "English"
  512.                                          "Español"
  513.                                          "Français"
  514.                                          "Italiano"
  515.                                          "Nederlands"
  516.                                          "Norsk"
  517.                                          "Português"
  518.                                          "Svenska")
  519.                                    (default default_lang)
  520.                      )
  521.         )
  522.         (user old_level)
  523.  
  524.         (set n 0)
  525.         (while (set language (select n
  526.                                        "dansk"
  527.                                         "deutsch"
  528.                                         "english"
  529.                                         "español"
  530.                                         "français"
  531.                                         "italiano"
  532.                                         "nederlands"
  533.                                         "norsk"
  534.                                         "português"
  535.                                         "svenska"
  536.                                         ""))
  537.         (
  538.             (if (IN lang n)
  539.             (
  540.                 (if (<> 2 n)
  541.                 (
  542.                     (makedir (cat "LOCALE:Catalogs/" language))
  543.                     (copyfiles (source (cat catalogdir language))
  544.                                   (dest (cat "LOCALE:Catalogs/" language))
  545.                                   (all)
  546.                     )
  547.                 ))
  548.             ))
  549.             (set n (+ n 1))
  550.         ))
  551.     ))
  552. ))
  553.